package com.crm.sys.model;

import java.util.List;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import com.crm.base.model.BaseModel;
import com.crm.user.model.UserInfo;

/** 
Create Table

CREATE TABLE `crm_department` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) DEFAULT NULL COMMENT '部门名称',
  `count` int(11) DEFAULT NULL COMMENT '部门人数',
  `level` int(11) DEFAULT NULL COMMENT '等级',
  `parentid` int(11) DEFAULT NULL COMMENT '上级部门ID',
  `remark` text COMMENT '备注',
  `callingid` int(11) DEFAULT NULL COMMENT '所属行业',
  `createdate` datetime DEFAULT NULL COMMENT '创建时间',
  `updatedate` datetime DEFAULT NULL COMMENT '修改时间',
  `updateuser` datetime DEFAULT NULL COMMENT '修改人',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='部门表'
*/
public class Department extends BaseModel {
 
	/**
	 * 
	 */
	private static final long serialVersionUID = 8686545553924027669L;
	private String name;
	private Integer count=0;
	private Integer level=1;
	private Long parentid=0L;
	private String remark;
	private Integer callingid; 
    private List<Department> depList;//子部门列表
	private List<UserInfo> userlist;//用户列表
	private Integer isdel;//是否删除
	
 
	public List<UserInfo> getUserlist() {
		return userlist;
	}
	public void setUserlist(List<UserInfo> userlist) {
		this.userlist = userlist;
	}
	public List<Department> getDepList() {
		return depList;
	}
	public void setDepList(List<Department> depList) {
		this.depList = depList;
	}
 
	public void setName(String name){
		this.name=name;
	}
	public String getName(){
		return name;
	}
	public void setCount(Integer count){
		this.count=count;
	}
	public Integer getCount(){
		return count;
	}
	public void setLevel(Integer level){
		this.level=level;
	}
	public Integer getLevel(){
		return level;
	}
	public Long getParentid() {
		return parentid;
	}
	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}
	public void setRemark(String remark){
		this.remark=remark;
	}
	public String getRemark(){
		return remark;
	}
	public void setCallingid(Integer callingid){
		this.callingid=callingid;
	}
	public Integer getCallingid(){
		return callingid;
	}
 
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
	public Integer getIsdel() {
		return isdel;
	}
	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}
}

